package com.buer.train.business.service;

import com.buer.train.business.domain.RoleDO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 角色
 * @date 2021-02-23 16:48:27
 */
public interface RoleService {
	
	RoleDO get(Integer roleId);
	
	List<RoleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(RoleDO role);
	
	int update(RoleDO role);
	
	int remove(Integer roleId);
	
	int batchRemove(Integer[] roleIds);

    PageInfo<RoleDO> getRoleList(Map<String, Object> map);

    RoleDO getOne(Map<String, Object> map);

	RoleDO getRoleByUserId(Integer userId);
}
